/* ****************************************************************************
 * Author: 671643387
 * Date: 2015/3/23
 * ***************************************************************************/

Ext.define("sggm.controller.MainFrame", {
    extend: "Ext.app.Controller",
    refs: [{
        ref: "mainFrame",
        selector: "mainFrame"
    }],

    init: function() {
        this.control({
            'mainFrame button[action=logout]': {
                click: this.onLogout
            }
        });
    },

    onLogout: function(sender) {
        this.getApplication().logout();
    }
});